package com.itheima;

import com.itheima.config.SpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * ClassName: App
 * Description:
 * Date: 2023/03/22 PM 10:53:59
 * <p>
 * project: springboot
 * package: com.itheima
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        String[] beans = ctx.getBeanDefinitionNames();
        for (String bean : beans) {
            System.out.println(bean);
        }
    }
}
